<template>
    <div class="setInfomation">
        <IHeader class="header" back="true" title="申请入驻"></IHeader>
        <scroller class="infomation-content">
            <Step step="2"></Step>
            <div class="basic-infomation">
                <text class="content-tit item-height border-bottom-cecece">请提供营业信息</text>
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="营业执照状态"></Label>
                        <div class="handleChoose flex_row">
                            <Radio :class="[index !== 0 ? 'margin_left_50' : '']" v-for="(item, index) in radioList" :key="index" @doclick="handleHasLicense(item)" :check="basicForm.businessLicenseType === item.type" :word="item.name"></Radio>
                        </div>
                    </div>
                    <div v-if="basicForm.businessLicenseType === '1'">
                        <div class="info-cell flex_row border-bottom-ebebeb no-single">
                            <Label content="营业执照附件"></Label>
                            <Question @doclick="handleSelectType(0)"></Question>
                            <div class="image-container">
                                <image v-if="basicForm.businessLicenseAtta && basicForm.businessLicenseAtta.length > 0" class="singleImage" :src="basicForm.businessLicenseAtta" @click="singleImageUpload('businessLicenseAtta')"></image>
                                <FileUploader v-if="basicForm.businessLicenseAtta.length <= 0" type="添加营业执照" @doclick="singleImageUpload('businessLicenseAtta')"></FileUploader>
                            </div>
                        </div>
                        <div class="info-cell flex_row item-height border-bottom-ebebeb">
                            <Label content="名称"></Label>
                            <input v-model="basicForm.businessLicenseName" class="write enterpriseName col_868686" placeholder="请输入营业执照上名称" type="text">
                        </div>
                        <div class="info-cell flex_row item-height border-bottom-ebebeb">
                            <Label content="企业法人"></Label>
                            <input v-model="basicForm.corporationName" class="write enterpriseName col_868686" placeholder="请输入企业法人名称" type="text">
                        </div>
                        <div class="info-cell flex_row item-height border-bottom-ebebeb">
                            <Label content="注册号" :error="basicForm.licenseCode.error"></Label>
                            <input v-model="basicForm.licenseCode.word" class="write enterpriseName col_868686" @blur="handleCheckLicenseCode" placeholder="请输入注册号/统一社会信用代码" type="text">
                        </div>
                    </div>
                    <div class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="经办类型"></Label>
                        <div class="handleChoose flex_row">
                            <Radio :class="[index !== 0 ? 'margin_left_50' : '']" v-for="(item, index) in dealList" :key="index" @doclick="handleDealType(item)" :check="basicForm.handleType === item.type" :word="item.name"></Radio>
                        </div>
                    </div>
                    <div v-if="basicForm.handleType === '1'" class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="法人身份证"></Label>
                        <input v-model="basicForm.idCardNumber" @blur="checkIdCardNumber" class="write enterpriseName col_868686" placeholder="请输入企业法人身份证号码" maxlength="18" type="text">
                    </div>
                    <div v-if="basicForm.handleType === '2'" class="info-cell flex_row item-height border-bottom-ebebeb">
                        <Label content="经办人身份证"></Label>
                        <input v-model="basicForm.idCardNumber" @blur="checkIdCardNumber" class="write enterpriseName col_868686" placeholder="请输入企业经办人身份证号码" maxlength="18" type="text">
                    </div>
                    <div class="info-cell flex_row border-bottom-ebebeb no-single">
                        <Label content="法人身份证照片" v-if="basicForm.handleType === '1'"></Label>
                        <Label content="经办人身份证照片" v-if="basicForm.handleType === '2'"></Label>
                        <Question @doclick="handleSelectType(1)"></Question>
                        <div class="idCardImage-container flex_row">
                            <div @click="singleImageUpload('idCardFront')" class="idCardImage-upload flex_row" v-if="basicForm.idCardFront.length <= 0">
                                <image class="image-upload" :src="imgPath('image_upload_1.png')"></image>
                                <text class="upload-word">添加身份证正面</text>
                            </div>
                            <image @click="singleImageUpload('idCardFront')" class="idCardImage-box" :src="basicForm.idCardFront" v-if="basicForm.idCardFront && basicForm.idCardFront.length > 0"></image>
                            <div @click="singleImageUpload('idCardBack')" class="idCardImage-upload flex_row" v-if="basicForm.idCardBack.length <= 0">
                                <image class="image-upload" :src="imgPath('image_upload_1.png')"></image>
                                <text class="upload-word">添加身份证反面</text>
                            </div>
                            <image @click="singleImageUpload('idCardBack')" class="idCardImage-box" :src="basicForm.idCardBack" v-if="basicForm.idCardBack && basicForm.idCardBack.length > 0"></image>
                        </div>
                    </div>
                </div>
            </div>
            <div class="basic-infomation" v-if="basicForm.businessLicenseType === '1'">
                <div class="info-list">
                    <div class="info-cell flex_row item-height border-bottom-ebebeb space_between align_center">
                        <div class="flex_row align_center">
                            <Label content="授权文件模板"></Label>
                            <Question @doclick="handleSelectType(2)"></Question>
                        </div>
                        <text class="checkModel" @click="handleSelectType(3)">查看模板</text>
                    </div>
                    <div class="info-cell flex_row border-bottom-ebebeb no-single">
                        <Label content="授权文件上传"></Label>
                        <div class="image-container">
                            <image v-if="basicForm.authorizeAtta && basicForm.authorizeAtta.length > 0" class="singleImage" :src="basicForm.authorizeAtta" @click="singleImageUpload('authorizeAtta')"></image>
                            <FileUploader v-if="basicForm.authorizeAtta.length <= 0"  type="上传授权文件" @doclick="singleImageUpload('authorizeAtta')"></FileUploader>
                        </div>
                    </div>
                </div>
            </div>
            <div class="nextStep flex_row">
                <text class="nextStepBtn" @click="handleSubmit" :class="[ifPress ? 'afterPress' : 'beforePress']" @touchstart="nextStepStart" @touchend="nextStepEnd">提交认证</text>
            </div>
        </scroller>
        <!--示例弹窗-->
        <wxc-popup popup-color="#fff" :show="typeSelectShow" pos="right">
            <div class="dialog-content">
                <IHeader class="header" back="true" close="true" title="图片要求" @closeDialog="closeTypeDialog"></IHeader>
                <div class="popup-box">
                    <image class="example-image" ref="license" :src="modelImageList[modelIndex]" @load="loadImage" @click="previewImage"></image>
                    <div class="example-tip" v-if="modelIndex === 0">
                        <text class="tip-header">拍照实例：企业</text>
                        <text class="tip-item">1.请上传营业执照源文件照片</text>
                        <text class="tip-item">2.需文字清晰、完整，露出国徽及印章</text>
                        <text class="tip-item">3.不可使用其他证件替代，包括食品安全证明等</text>
                    </div>
                    <div class="example-tip" v-if="modelIndex === 1">
                        <text class="tip-header">拍照实例：身份证正面</text>
                        <text class="tip-item">1.请确认身份证各项信息可见，无遮挡</text>
                        <text class="tip-item">2.请上传身份证正反面照片</text>
                        <text class="tip-item">3.不可使用其他证件替代，包括港澳台证件等</text>
                    </div>
                    <div class="example-tip" v-if="modelIndex === 2">
                        <text class="tip-header">上传实例：授权文件</text>
                        <div class="flex_row">
                            <text class="tip-item">1.在“</text>
                            <text class="tip-item cor_ff0f37">查看模板</text>
                            <text class="tip-item">”中保存授权文件模板打印</text>
                        </div>
                        <text class="tip-item">2.授权文件需公司签名盖章同意，拍照上传</text>
                        <text class="tip-item">3.上传的图片需文字清晰、完整，露出盖章及签名</text>
                        <text class="tip-item">4.不可仿冒授权文件、印章等，签字需公司法人本人签字，拒绝他人代签</text>
                    </div>
                    <div class="example-tip" v-if="modelIndex === 3">
                        <text class="tip-header">授权文件模板</text>
                        <text class="tip-item">1.请点击保存以上授权文件图片</text>
                        <text class="tip-item">2.打印文件后公司需签字盖章同意并拍照上传</text>
                        <text class="tip-item">3.上传的图片需文字清晰、完整，露出盖章及签名</text>
                        <text class="tip-item">4.不可仿冒授权文件、印章等，签字需公司法人本人签字,拒绝他人代签</text>
                    </div>
                    <Buttons class="margin_top_70" word="已了解，去上传" @doclick="closeTypeDialog"></Buttons>
                </div>
            </div>
        </wxc-popup>
        <!--图片预览-->
        <Preview :show="previewShow" :src="imageSrc" @hidePreview="hidePreview"></Preview>
        <!--弹窗提示-->
        <Modal :show="showError" :word="errorWord" type="0"></Modal>
        <!--loading-->
        <wxc-loading :show="loadingShow" :need-mask="needMask"></wxc-loading>
    </div>
</template>

<script>
import IHeader from '@/components/header'
import Step from '@/components/settleStep'
import Label from '@/components/label'
import Question from '@/components/question'
import Uploader from '@/components/imageUpload'
import FileUploader from '@/components/fileUpload'
import Preview from '@/components/preview'
import Radio from '@/components/radio'
import Buttons from '@/components/buttons'
import Modal from '@/components/modal'
import { WxcPopup, WxcLoading } from 'weex-ui'
import { validateLicenseCode, validatenull, validateIdCardNumber } from '@/util/validate'
import { companySettle } from '@/api/user'
import { fileUpload } from '@/api/common'
import Nat from 'natjs'
const modal = weex.requireModule('modal')
const animation = weex.requireModule('animation')
export default {
  name: 'setInfomation',
  data () {
    return {
      information: null, // 基础信息
      loadingShow: false, // loading
      needMask: true,
      radioList: [
        {
          name: '有执照',
          type: '1'
        },
        {
          name: '无执照',
          type: '2'
        }
      ], // 营业执照状态
      dealList: [
        {
          name: '法人',
          type: '1'
        },
        {
          name: '经办人',
          type: '2'
        }
      ], // 经办类型
      typeSelectShow: false, // 示例弹窗显示
      modelIndex: 0, // 模板弹窗下标
      modelImageList: ['http://yyk-upload.oss-cn-shenzhen.aliyuncs.com/app/image/20181026/04e8992538904c508ebb12e93a029687.png',
        'http://yyk-upload.oss-cn-shenzhen.aliyuncs.com/app/image/20181026/c25eaad7b1764e9aa1ed030dd421bf66.png',
        'http://yyk-upload.oss-cn-shenzhen.aliyuncs.com/app/image/20181026/d5f4f8f66049491f8eddc4e5dd1fe85a.png',
        'http://yyk-upload.oss-cn-shenzhen.aliyuncs.com/app/image/20181026/0beb57a22c3949d581024a95a9cab3c6.png'], // 模板图片地址
      basicForm: { // 资料表单
        businessLicenseType: '1', // 营业状态
        businessLicenseAtta: '', // 营业执照附件
        businessLicenseName: '', // 营业执照名称
        // creditedCode: '', // 注册号
        corporationName: '', // 企业法人
        handleType: '1', // 经办类型
        idCardNumber: '', // 身份证号
        idCardFront: '', // 身份证正面
        idCardBack: '', // 身份证反面
        authorizeAtta: '', // 授权文件
        licenseCode: {
          error: false,
          word: ''
        } // 统一社会信用代码
      },
      ifPress: false, // 点击效果
      previewShow: false, // 预览弹窗隐藏
      imageSrc: '', // 图片预览src
      showError: false, // 错误弹窗提示
      errorWord: '' // 错误弹窗提示语
    }
  },
  created () {
    this.information = this.$route.query.params // 路由传参
  },
  methods: {
    handleSelectType (inx) { // 营业执照模板显示
      this.modelIndex = inx
      this.typeSelectShow = true
      // console.log(this.$refs.pop)
    },
    closeTypeDialog () { // 关闭营业执照弹窗
      this.typeSelectShow = false
    },
    handleCheckLicenseCode () { // 验证社会信用代码格式
      if (!validateLicenseCode(this.basicForm.licenseCode.word)) {
        // this.basicForm.licenseCode.error = true
        this.showError = true
        this.errorWord = '注册号有误，请重新输入'
        return
      }
      this.showError = false
      // this.basicForm.licenseCode.error = false
    },
    checkIdCardNumber () { // 身份证验证
      const that = this
      let res = validateIdCardNumber(that.basicForm.idCardNumber)
      if (!res) {
        that.showError = true
        that.errorWord = '身份证格式有错误'
      } else {
        that.showError = false
      }
    },
    singleImageUpload (type) { // 单张图片上传
      const that = this
      Nat.image.pick({
        showCamera: true
      }, (err, ret) => {
        if (err) {
          modal.toast({
            message: '[ERROR] ' + JSON.stringify(err)
          })
          return
        }
        // that.loadingShow = true
        let path = ret.paths[0]
        Nat.upload(that.$api.url + fileUpload, {
          path: path
        }, (errs, res) => {
          if (errs) {
            modal.toast({
              message: '[ERROR] ' + JSON.stringify(errs)
            })
            return
          }
          if (res.ok) {
            let data = JSON.parse(res.data)
            let imageUrl = data.data
            for (let j in that.basicForm) {
              if (type === j) {
                that.basicForm[j] = imageUrl
              }
            }
          }
        })
        // that.loadingShow = false
      })
    },
    handleHasLicense (item) { // 切换是否有营业执照
      this.basicForm.businessLicenseType = item.type
      this.idCardNumber = ''
      this.basicForm.idCardFront = ''
      this.basicForm.idCardBack = ''
    },
    handleDealType (item) { // 切换经办类型
      this.basicForm.handleType = item.type
    },
    previewImage (e) { // 图片预览
      const view = e.target
      let url = ''
      if (weex.config.env.platform === 'Web') {
        url = view.getAttribute('src')
      } else {
        url = view.attr.src
      }
      this.imageSrc = url
      this.previewShow = true
    },
    hidePreview () { // 隐藏预览
      this.previewShow = false
    },
    loadImage (event) { // 图片初始化大小
      let els = this.$refs.license
      let k = event.size.naturalWidth / event.size.naturalHeight
      // els.style.width = '650px'
      // els.style.height = parseInt(650 / k) + 'px'
      // els.style.height = 650 / k + '                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '
      animation.transition(els, {
        styles: {
          width: parseInt(420 * k) + 'px',
          height: 420 + 'px'
        },
        duration: 50, // ms
        timingFunction: 'ease',
        needLayout: true,
        delay: 0 // ms
      }, function () {})
    },
    nextStepStart (e) { // 下一步按钮点击效果
      this.ifPress = true
    },
    nextStepEnd (e) { // 下一步按钮点击效果
      this.ifPress = false
    },
    handleSubmit () { // 提交
      const that = this
      that.checkIdCardNumber()
      if (that.showError) {
        return
      }
      let params = {
        businessLicenseType: that.basicForm.businessLicenseType,
        handleType: that.basicForm.handleType,
        corporationIdNum: that.basicForm.idCardNumber,
        corporationIdPic: that.basicForm.idCardFront + ',' + that.basicForm.idCardBack
      }
      if (that.basicForm.businessLicenseType === '1') {
        params.businessLicenseAtta = that.basicForm.businessLicenseAtta
        params.corporationName = that.basicForm.corporationName
        params.businessLicenseName = that.basicForm.businessLicenseName
        params.creditedCode = that.basicForm.licenseCode.word
        params.authorizeAtta = that.basicForm.authorizeAtta
      }
      for (let i in params) {
        if (validatenull(params[i])) {
          that.errorWord = '请填写完整信息'
          that.showError = true
          setTimeout(() => {
            that.showError = false
          }, 2000)
          return
        }
      }
      params = Object.assign(params, that.information)
      that.loadingShow = true
      that.$api.post(companySettle, params, () => {
        that.loadingShow = false
        let obj = {
          success: true,
          word: '提交成功'
        }
        that.$router.push({path: '/home', query: {obj: obj}})
      }, () => {
        that.loadingShow = false
      }, true)
    }
  },
  components: {
    IHeader,
    Step,
    Label,
    WxcPopup,
    WxcLoading,
    Question,
    Uploader,
    Radio,
    Preview,
    Buttons,
    Modal,
    FileUploader
  }
}
</script>

<style scoped>
    .col_868686 {
        color: #868686;
    }
    .flex_row {
        flex-direction: row;
    }
    .border-bottom-cecece {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #cecece;
    }
    .border-bottom-ebebeb {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: #ebebeb;
    }
    .item-height {
        height: 88px;
        line-height: 88px;
    }
    .infomation-content {
        padding-top: 88px;
        background-color: #f5f5f5;
    }
    .info-cell {
        padding-left: 24px;
        padding-right: 24px;
        justify-content: space-between;
    }
    .basic-infomation {
        margin-top: 24px;
        background-color: #fff;
    }
    .content-tit {
        padding-left: 24px;
        padding-right: 24px;
        color: #a4a4a4;
        font-size: 28px;
        background-color: #fff;
    }
    .handleChoose {
        align-items: center;
    }
    .choose-word {
        font-size: 26px;
    }
    .arrow_right_small {
        width: 27px;
        height: 28px;
        margin-left: 16px;
    }
    .enterprise-item {
        padding-left: 24px;
        padding-right: 24px;
    }
    .enterprise-name {
        font-size: 26px;
    }
    .write {
        padding-right: 44px;
        text-align: right;
        border-width: 0px;
        font-size: 26px;
        placeholder-color: #cecece;
    }
    .enterpriseName {
        width: 512px;
    }
    .enterpriseNumber {
        width: 300px;
    }
    .enterpriseIntroduce {
        width: 654px;
        height: 200px;
        margin-top: 16px;
        margin-left: 24px;
        padding-top: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
        padding-left: 16px;
        border-width: 1px;
        border-style: solid;
        border-color: #ebebeb;
        font-size: 24px;
        placeholder-color: #cecece;
    }
    .introduce-wrapper {
        padding-top: 20px;
        border-bottom-width: 0px;
    }
    .word-number {
        flex: 1;
        padding-right: 24px;
        font-size: 24px;
        line-height: 64px;
        color: #cecece;
        text-align: right;
    }
    .realSceneTip {
        flex: 1;
        height: 60px;
        margin-top: 12px;
        padding-left: 16px;
        padding-right: 16px;
        border-width: 1px;
        border-style: solid;
        border-color: #ff0f37;
        color: #ff0f37;
        font-size: 22px;
        line-height: 58px;
        border-radius: 4px;
    }
    .no-single {
        padding-top: 20px;
        padding-bottom: 24px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .image-container {
        width: 702px;
        margin-top: 20px;
    }
    .margin_left_12 {
        margin-left: 12px;
    }
    .margin_left_50 {
        margin-left: 50px;
    }
    .image-content {
        margin-right: 12px;
    }
    .scene-image {
        width: 226px;
        height: 226px;
    }
    .delete-image {
        position: absolute;
        top: 0;
        right: 0;
        width: 24px;
        height: 24px;
    }
    .nextStep {
        margin-top: 98px;
        margin-bottom: 144px;
        justify-content: center;
    }
    .nextStepBtn {
        width: 414px;
        height: 60px;
        text-align: center;
        line-height: 60px;
        font-size: 30px;
        color: #fff;
        border-radius: 10px;
    }
    .beforePress {
        background-image: linear-gradient(to right, #2b3040, #7d88a4);
    }
    .afterPress {
        background-image: linear-gradient(to right, #343741, #8e929d);
    }
    .popup-box {
        margin-top: 88px;
        padding-top: 40px;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 24px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .example-container {
        width: 702px;
        padding-top: 24px;
        padding-right: 24px;
        padding-bottom: 24px;
        padding-left: 24px;
        border-width: 1px;
        border-style: solid;
        border-color: #cecece;
    }
    .example-image {
        width: 300px;
        height: 300px;
    }
    .example-tip {
        width: 700px;
        margin-top: 20px;
        padding-bottom: 24px;
    }
    .tip-header {
        margin-bottom: 16px;
        font-size: 30px;
        font-weight: bold;
        color: #464646;
    }
    .tip-item {
        font-size: 30px;
        line-height: 46px;
        color: #666;
    }
    .dialog-content {
        /*overflow: scroll;*/
    }
    .idCardImage-container {
        width: 702px;
        margin-top: 20px;
        justify-content: space-between;
    }
    .idCardImage-box {
        width: 340px;
        height: 215px;
    }
    .idCardImage-upload {
        width: 340px;
        height: 215px;
        border-width: 1px;
        border-style: solid;
        border-color: #cecece;
        border-radius: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .image-upload {
        width: 50px;
        height: 50px;
        margin-top: 60px;
        margin-bottom: 20px;
    }
    .upload-word {
        width: 338px;
        text-align: center;
        font-size: 26px;
        color: #cecece;
    }
    .space_between {
        justify-content: space-between;
    }
    .align_center {
        align-items: center;
    }
    .checkModel {
        font-size: 26px;
        color: #fecb01;
    }
    .cor_ff0f37 {
        color: #ff0f37;
    }
    .margin_top_70 {
        margin-top: 70px;
    }
    .singleImage {
        width: 702px;
        height: 466px;
    }
</style>
